// NetTools.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "NetTools.h"
#include "DlgNetTools.h"
#include "MainDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CNetToolsApp

BEGIN_MESSAGE_MAP(CNetToolsApp, CWinApp)
END_MESSAGE_MAP()


// CNetToolsApp construction
CNetToolsApp::CNetToolsApp()
	: CWinApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}


// The one and only CNetToolsApp object
CNetToolsApp theApp;

// CNetToolsApp initialization

BOOL CNetToolsApp::InitInstance()
{
    // SHInitExtraControls should be called once during your application's initialization to initialize any
    // of the Windows Mobile specific controls such as CAPEDIT and SIPPREF.
    SHInitExtraControls();

	if (!AfxSocketInit())
	{
		AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
		return FALSE;
	}

	// SetRegistryKey(_T("mSoftware"));

	// CMainDlg dlg(_T("Network Tools"));
	CDlgNetTools dlg;
	m_pMainWnd = &dlg;
	dlg.DoModal();

	return FALSE;
}
